<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.Calendar"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>查询账单</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
</head>
<body>
<div data-role="page" align="center" >
  <div data-role="header">
  <h1>查询账单</h1>
  <a href="ownerQuery.do?method=opinion&id=${owner.id }" data-role="button" data-icon="star" class="ui-btn-right" data-mini="true">意见反馈</a>
  </div>

<div data-role="content">
<html:form action="ownerQuery.do?method=searchBill" method="post" >
<html:hidden property="id" value="${owner.id}" />
 <div class="ui-grid-a">
 <div class="ui-block-a" style="width: 15%;padding: 20px;" >
 起
 </div>
  <div class="ui-block-b" style="width: 85%">
  <fieldset data-role="controlgroup" data-type="horizontal">
<html:select property="chargeYear1" >
<html:option value="0">年份</html:option>
<%	Calendar c = Calendar.getInstance();
for(int i=2012;i<=c.get(Calendar.YEAR);i++) {%>
<html:option value="<%=String.valueOf(i+1) %>"><%=i+1 %>年</html:option>
<%} %>
</html:select>

<html:select property="chargeMonth1" >
<html:option value="0">月份</html:option>
<%	for(int i=1;i<=12;i++) {%>
<html:option value="<%=String.valueOf(i) %>"><%=i %>月</html:option>
<%} %>
</html:select>
</fieldset>
 </div>
 </div>
 
 <div class="ui-grid-a">
 <div class="ui-block-a" style="width: 15%;padding: 20px;" >
 止
 </div>
  <div class="ui-block-b" style="width: 85%">
  <fieldset data-role="controlgroup" data-type="horizontal">
<html:select property="chargeYear2" >
<html:option value="0">年份</html:option>
<%	Calendar c = Calendar.getInstance();
for(int i=2012;i<=c.get(Calendar.YEAR);i++) {%>
<html:option value="<%=String.valueOf(i+1) %>"><%=i+1 %>年</html:option>
<%} %>
</html:select>

<html:select property="chargeMonth2" >
<html:option value="0">月份</html:option>
<%	for(int i=1;i<=12;i++) {%>
<html:option value="<%=String.valueOf(i) %>"><%=i %>月</html:option>
<%} %>
</html:select>
</fieldset>
 </div>
 </div>

<div data-role="fieldcontain" >
        <font color="red" size="2">${error }</font>
</div>

<div data-role="fieldcontain" >
<html:submit value="提交"  />&nbsp;&nbsp;<html:reset value="取消" />
</div>
</html:form>
</div>
<div data-role="footer" data-position="fixed" data-fullscreen="true">
  <div data-role="controlgroup" data-type="horizontal">
    <a href="ownerQuery.do?method=toSearchBill&id=${owner.id }"" data-role="button" data-icon="search">搜索账单</a>
    <a href="ownerQuery.do?method=showALLBills&id=${owner.id }" data-role="button" data-icon="search">所有物业账单</a>
  </div>
</div>
</div> 
</body>
</html>